package com.mingqijia.gassafety.authority.api.resp.manager;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.mingqijia.gassafety.authority.api.resp.company.CompanyLiteRespDTO;
import com.mingqijia.gassafety.authority.api.resp.department.DepartmentRespDTO;
import com.mingqijia.gassafety.authority.api.resp.role.RoleInfoRespDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 创建后的返回数据
 * @author Damon S.
 * @version v0.2
 * @date 2021-06-19
 */
@Data
@ApiModel(value = "管理员用户信息")
public class ManagerRespDTO implements Serializable {
    @ApiModelProperty(value = "管理员ID")
    private String userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "账号类型：1平台账号,3企业账号")
    private Integer type;

    @ApiModelProperty(value = "企业")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CompanyLiteRespDTO> orgs;

    @ApiModelProperty(value = "部门")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DepartmentRespDTO> departments;

    @ApiModelProperty(value = "角色")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<RoleInfoRespDTO> roles;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "状态(1-激活，0-冻结)")
    private Integer state;

    @ApiModelProperty(value = "描述信息")
    private String description;
}